package gdr.battle.core;

import gdr.battle.data.*;

import java.awt.*;
import java.util.*;

public class BattleContainer {
	protected BattleManager manager;
	protected DataHolder data;
	protected ArrayList<Client> clients;

	
	public BattleContainer(){
		clients = new ArrayList<Client>();
	}
	
	public void update(long elapsedTime){
		manager.update(elapsedTime);
		for (int i=0; i<clients.size(); i++)
			clients.get(i).update(elapsedTime);
	}
	
	public void render(Graphics2D g){
		for (int i=0; i<clients.size(); i++)
			clients.get(i).render(g);
	}

	
	
	
	
	
	
	
	public BattleManager getManager() {
		return manager;
	}

	public void setManager(BattleManager manager) {
		this.manager = manager;
	}

	public DataHolder getData() {
		return data;
	}

	public void setData(DataHolder data) {
		this.data = data;
	}

	public ArrayList<Client> getClients() {
		return clients;
	}

	public void setClients(ArrayList<Client> clients) {
		this.clients = clients;
	}

}
